#!/bin/env python3

## This software is licensed by the MIT License, see LICENSE file ##
##                                    Copyright © 2022 whitemangl ##

import asyncio
from utils import TGPBot
from handlers import register_handlers

if __name__ == "__main__":

    bot = TGPBot()

    register_handlers(bot)

    try: asyncio.get_event_loop().run_until_complete(bot.start())
    except Exception as e: print(f"{e.__class__.__name__}: {e}")
